package pattern.decorator.cake.v2;

/**
 * @author juxiaojun
 * @since 2019-05-12
 */
public class SausageDecorator extends EggDecorator {
    public SausageDecorator(Pancake pancake) {
        super(pancake);
    }

    protected void doSomething() {

    }

    @Override
    protected String getMsg() {
        return super.getMsg() + "+1根香肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 2;
    }
}
